Web API Edition | ComponentOne
C1.Web.Api Namespace / C1ApiController Class / File(Func<Stream>,String) Method
The function to get a System.IO.Stream with the contents of the file.
The file full name.

In This Topic
    File(Func<Stream>,String) Method
    In This Topic
    Returns a file in the specified fileStream with the full file name.
    Syntax
    'Declaration
     
    
    Protected Overridable Function File( _
       ByVal streamGetter As Func(Of Stream), _
       ByVal fullFileName As String _
    ) As IHttpActionResult

    Parameters

    streamGetter
    The function to get a System.IO.Stream with the contents of the file.
    fullFileName
    The file full name.

    Return Value

    A file result for the response.
    See Also